package com.chinaunicom.aware;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2021/12/9 11:22
 * Description:
 */
public class AwareMain {

	public static void main(String[] args) {
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext("beans-aware.xml");

		MyApplicationAware aware = (MyApplicationAware) applicationContext.getBean("myApplicationAware");

		aware.display();
	}
}
